﻿Imports Microsoft.VisualBasic

Public Class PublicLayout
    Public Shared Function GetMenu() As String
        Dim city As String = "<div data-role='panel' id='menu-right-panel' data-position='right' data-display='overlay' data-theme='a'>"
        city += "<ul data-role='listview' data-theme='a'>"
        city += "<li data-icon='delete'><a data-ajax='false'  onclick='goPage(""page-main"");' href='javascript:void(0);' data-rel='close' data-inline='true'>Đóng Menu</a></li>"
        city += "<li><a data-ajax='false'  href='" + Util.GetConfigKey("RootURl") + "/trang-chu.html' data-ajax='false'>Trang chủ</a></li>"
        'city += "<li><a href='#'>Choupon</a></li>"
        city += "<li><a data-ajax='false'  href='" + Util.GetConfigKey("RootURl") + "/tin-du-lich.html'>Tin du lịch</a></li>"
        city += "<li><a data-ajax='false'  href='http://www.khachsan24gio.vn/'>Giao diện đầy đủ</a></li>"
        city += "</ul>"
        city += "</div>"
        Return city
    End Function
    Public Shared Function GetFooter() As String
        Dim city As String = "<div class='ui-footer ui-bar-f' data-theme='f' data-role='footer' role='contentinfo'>"
        city += "<h4 class='ui-title' role='heading' aria-level='1'>"
        city += "<div style='float: left;'> Cam kết giá tốt</div>"
        city += "<div style='float: right;'>"
        city += "<a style='text-decoration: none;' class='ui-link' href='tel:08 38302686'>08 38302686</a>"
        city += "</div>"
        city += "<div class='clear'> </div>"
        city += "</h4>"
        city += "</div>"
        Return city
    End Function
    Public Shared Function GetHeader(Optional title_header As String = "<a class='ui-link' data-ajax='false' href='#main-page'><img  height='30' src='http://www.khachsan24gio.vn/Contents/Images/logo.png' alt=''></a>", Optional style_h1 As String = "") As String
        Dim city As String = "<div data-role='header' class='jqm-header ' data-theme='f'>"
        city += "<div><a data-direction='reverse' style='top:0px;border-radius: 0px;' class='back-button ui-btn-left' href='#main-page' data-role='button' data-icon='arrow-l' data-iconpos='notext' data-theme='f' data-inline='true'>Menu</a></div>"
        city += "<h1 " + style_h1 + " class='ui-title' role='heading' aria-level='1'>"
        city += title_header
        city += "</h1>"
        city += "<div>"
        city += "<a style='top:0px;border-radius: 0px;right:0px;' class='menu-button ui-btn-right' href='#menu-right-panel' data-role='button' data-icon='bars' data-iconpos='notext' data-theme='f' data-inline='true'>Menu</a>"
        city += " </div>"
        city += " </div>"
        Return city
    End Function
    'Public Shared Function GetOptionDate(ByVal arrivalDate As Date) As List(Of ListItem)
    '    Dim listItemList As New List(Of ListItem)
    '    Dim html As String = ""
    '    For i As Integer = 0 To 60
    '        Dim _mDate As Date = DateAdd(DateInterval.Day, +i, arrivalDate)
    '        Dim valueDay As String = String.Format("{0}/{1}/{2}", _mDate.Day, _mDate.Month, _mDate.Year)
    '        Dim textDay As String = String.Format("{0} {1}", Util.GetThuTrongTuan(CInt(_mDate.DayOfWeek), "Chủ Nhật"), valueDay)
    '        Dim itemList As New ListItem(textDay, valueDay)
    '        '  Dim _Date As Date = DateAdd(DateInterval.Day, +i, Now.Date)
    '        ' html += String.Format("<option value=""{1}/{2}/{3}"">{0} {1}/{2}/{3}</option>", Util.GetThuTrongTuan(CInt(_Date.DayOfWeek), "Chủ Nhật"), _Date.Day, _Date.Month, _Date.Year)
    '        listItemList.Add(itemList)
    '    Next
    '    Return listItemList
    'End Function
    Public Shared Function GetOption(ByVal num As Integer) As String
        Dim html As String = ""
        For i As Integer = 1 To num
            html += String.Format("<option value=""{0}"">{0}</option>", i)
        Next
        Return html
    End Function
End Class
